package com.guo.mapper;

import com.guo.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @Auther Heart Guo
 * @Date 2021/12/24-13:56
 */
public interface UserMapper {
    //查询全部用户
    List<User> getUserList();
    //根据id查询
    User getUserById(int id);
    //插入一个用户
    int addUser(User user);
    //修改用户
    int updateUser(User user);
    //删除用户
    int deleteUser(int id);


    int addUser1(Map<String,Object> map);
    User getUserById1(Map<String,Object> map);
}
